#include "fz.h"

#include <bits/stdc++.h>

using namespace std;

void Fz::addYz(string na, int n = 1) {
    for (int i = 0; i <= nyz; i++) {
        if (yzs[i].na == na) {
            yzs[i].n += n;
            return;
        }
    }

    nyz++;
    yzs[nyz].na = na;
    yzs[nyz].n = n;
}